<ion-view title="我的钱包">
  <ion-nav-buttons side="left">
    <a class="button button-icon icon ion-ios-arrow-left" ng-click="goBackPage()"></a>
  </ion-nav-buttons>
  <ion-content class="usermoney">
    <div class="um_mymoney">
      <img class="um_mbg" src="img/money/qianbao-bg@3x_compressed.jpg">
      <p class="um_mmyet">余额(元)</p>
      <p class="um_mmye">{{moneyData.money | to_pricedouble}}</p>
      <p class="um_mmsyt">我的收益(元)</p>
      <p class="um_mmsy">{{moneyData.profit | to_pricedouble}}</h5>
    </div>
    <!--     <br>
    <br> -->
    <div class="item  um_rs_com_t">
      <!-- <span>游客点评（<span>99</span>）</span>
            <a href="#">查看更多</a> -->
      明细
      <!-- <a class="item-note">查看更多</a> -->
    </div>
    <div class="list um_records">
      <!-- type 1 支出 2 收益 3 提现 4 充值 -->
      <div class="item um_record" ng-repeat="item in moneyData.bills">
        <p><b ng-if="item.type==1">消费</b><b ng-if="item.type==2">收益</b><b ng-if="item.type==3">提现</b><b ng-if="item.type==4">充值</b>
          <!-- <span>预约向导<a>猪八戒</a><i>(2日游)</i></span> -->
          <tt class="change">{{(item.type==1||item.type==3)?"-":"+"}}{{item.price | to_pricedouble}}元</tt>
        </p>
        <p><span>{{item.createTime | to_dateYMDHM}}</span></p>
      </div>
    </div>
    <ion-infinite-scroll ng-if="!pageData.nomoreData" on-infinite="loadMore()" distance="1%"></ion-infinite-scroll>
  </ion-content>
  <div class="um_bgns">
    <div class=" um_bgn" ng-click="usergetmoney()">
      提现
    </div>
    <div class=" um_bgn" ng-click="useraddmoney()">
      充值
    </div>
  </div>
</ion-view>
